import cv2
import argparse

cap = cv2.VideoCapture("00HFP.mp4")
cap.set(cap, cv2.CV_CAP_PROP_FPS,24)
flag=0
save_frame_path = "output/closingdoor_rgb"
save_flow_path = "output/closingdoor_flow"
cnt = 1
while(cap.isOpened()):
    
    ret, img = cap.read()
    if not ret:
        print("exit")
        break
    cv2.imwrite("output/closingdoor_rgb/00HFP-{0:06d}.jpg".format(cnt), img)
    print(cnt)
    cnt+=1

